/*
 * @Author: Zhang Kai
 * @Date: 2021-11-01 14:45:53
 * @LastEditors: Zhang Kai
 * @LastEditTime: 2022-06-21 18:22:07
 * @FilePath: /metricsx-standard-ui/src/utils/constants.ts
 */
export enum EDicType {
  department = 'DEPARTMENT', //指标关联部门
  unit = 'UNIT', //指标计量单位
  grade = 'GRADE',//指标等级
  aggregation = 'AGGREGATION',//默认聚合方式
  dataType = 'DATA_TYPE',//指标数据类型
  sceneColorType = 'SCENE_COLOR_TYPE',//场景卡片颜色
}

export const dimensionTypes2En = {
  '已发布':'PUBLISHED',
  '草稿': 'DRAFT',
  '未发布':'UNPUBLISHED'
};

export enum EIndicatorStatus {
  draft = 'DRAFT', //草稿
  unpublished = 'UNPUBLISHED', //未发布
  published = 'PUBLISHED' // 已发布
}

export enum EModelTypeString {
  METRICS = '指标',
  DIMENSION = '维度',
  TIMEPERIOD = '统计粒度'
}


export enum EPublishStatus {
  publish = '1',
  unpublish = '2'
}

export enum EFavoriteStatus {
  unCollected,
  collected
}

export enum ECustomColumn {
  indexlib = 'INDEXLIB', //指标库
  indexmanage = 'INDEXMANAGE', //指标管理
  modifier = 'MODIFIER', //修饰词
  modelmanage = 'MODELMANAGE', //模型管理
  timeperiod = 'TIMEPERIOD', //统计粒度
  dimensionmgmt = 'DIMENSIONMGMT', //维度管理
  created = 'I_CREATE_APPROVAL ', //审批流我创建的
  approval = 'I_APPROVAL' //审批流我审批的
}
